package exercises.Charpter7;

class NewFrog extends Amphibian{
	NewFrog(String name){
		super(name);
	}
	
	void love(Amphibian other){
		System.out.println(getName() + " loves " + other.getName() + "?");
	}
}

public class Seventeen {
	public static void main(String[] args){
		NewFrog a = new NewFrog("testa");
		NewFrog b = new NewFrog("testb");
		a.love(b);
	}
}
